package com.woniu.bank.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 前端返回查询联保协议的相关数据
 *
 * @author 晨星
 * @date 2023/1/9 14:42
 **/
@Data
@ApiModel(description = "前端返回联保协议的查询的相关数据")
public class AgreementGroupDTO {

    @ApiModelProperty(value = "联保小组编号")
    private String groupNo;

    @ApiModelProperty(value = "联保小组名称")
    private String groupName;

    @ApiModelProperty(value = "起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date beginDate;

    @ApiModelProperty(value = "截止日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    @ApiModelProperty(value = "协议状态")
    private String agreementStatus;

    @ApiModelProperty(value = "每页显示的行数")
    private Integer pageSize;

    @ApiModelProperty(value = "当前页")
    private Integer currentPage;

}
